//
//  Tree.h
//  OC作业
//
//  Created by dllo on 15/12/1.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Tree : NSObject
//{
//    @public
//    
//    NSString *_name;
//    
//    NSInteger _number;
//    
//    
//}
///*setter getter*/
//- (void)setName:(NSString *)name;
//- (NSString *)name;
//- (void)setNumber:(NSInteger)number;
//- (NSInteger)number;

@property (nonatomic, retain) NSString *name;
@property (nonatomic) NSInteger number;


/*初始化*/
- (instancetype)initWithName:(NSString *)name
                      number:(NSInteger)number;


/*便利构造器*/
+ (instancetype)treeWithName:(NSString *)name
                      number:(NSInteger)number;




@end
